<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="stylesheet" href="../css/login.css">
    <link rel="stylesheet" href="../css/Loading.css">
    <script src="../js/utils/axios.min.js"></script>
    <script src="../js/request.js"></script>
    <link href="https://cdn.jsdelivr.net/npm/sweetalert2@11.15.3/dist/sweetalert2.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.15.3/dist/sweetalert2.all.min.js"></script>

</head>

<body>
    <div class="back" id="back">
        <div class="log" id="log">
            <div class="logtitle" id="formTitle">LOGIN</div>
            <p></p>
            <form id="loginForm" class="logbody" style="display: block;">
                <input type="text" id="loginUsername" size="20" class="txt" placeholder="账户">
                <br>
                <input type="password" id="loginPassword" size="20" class="txt" placeholder="密码">
                <br>
                <input type="submit" value="登录" class="sub">
                <input type="button" value="切换注册" class="sub" onclick="toggleForm()">
                <a href="home.html"><input type="button" value="游客登录" class="ykbt"></a>
            </form>

            <form id="registerForm" class="logbody" style="display: none;">
                <input type="text" id="regUsername" size="20" class="txt" placeholder="用户名">
                <br>
                <input type="password" id="regPassword" size="20" class="txt" placeholder="密码">
                <br>
                <input type="email" id="regEmail" size="20" class="txt" placeholder="邮箱">
                <br>
                <input type="text" id="regNickname" size="20" class="txt" placeholder="昵称">
                <br>
                <input type="submit" value="注册" class="sub">
                <input type="button" value="返回登录" class="sub" onclick="toggleForm()">
            </form>
        </div>
    </div>
    <div class="con" id="con">
        <div class="load">
            <div class="dot" style="--i:0"></div>
            <div class="dot" style="--i:1"></div>
            <div class="dot" style="--i:2"></div>
            <div class="dot" style="--i:3"></div>
            <div class="dot" style="--i:4"></div>
            <div class="dot" style="--i:5"></div>
            <div class="dot" style="--i:6"></div>
        </div>
    </div>
    <script src="../js/login.js"></script>
</body>

</html>